package com.kma.summer2012.client.services.viewMap;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.kma.summer2012.client.ExceptionHandling.CrumbsRPCServiceException;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: HP
 * Date: 09.02.13
 * Time: 20:05
 * To change this template use File | Settings | File Templates.
 */
@RemoteServiceRelativePath("CrumbsViewMapService")
public interface CrumbsViewMapService extends RemoteService {

    Map<String, List<Integer>> getViewMap(Date date) throws CrumbsRPCServiceException;

    Map<Integer, String> getRequestInfoMap(List<Integer> requestIdList) throws CrumbsRPCServiceException;

    public static class App {
        private static final CrumbsViewMapServiceAsync ourInstance = (CrumbsViewMapServiceAsync) GWT.create(CrumbsViewMapService.class);

        public static CrumbsViewMapServiceAsync getInstance() {
            return ourInstance;
        }
    }
}
